/**
 * 门店相关接口 
 */
var request = require('./request.js');

module.exports = {
  /**
   * 查询所有门店
   */
  queryList: function() {
    return request.get('/newretail/api/mall/store/queryList')
  },
  /**
   * 查询统配门店
   */
  getDistributionStore: function() {
    return request.get('/newretail/api/mall/store/getDistributionStore')
  },
  /**
   * 根据门店id查询门店详情
   * @param id 门店Id
   */
  getById: function(id) {
    var params = {
      id: id
    }
    return request.get('/newretail/api/mall/store/getById', params)
  }
}